import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

import { state, mutations, getters } from './mutations'
import { actions } from "./actions"
import cate from './modules/cate'
import specs from './modules/specs'
import banner from './modules/banner'
import goods from './modules/goods'
import seckill from "./modules/seckill"

export default new Vuex.Store({
  state,
  mutations,
  getters,
  actions,
  modules: {
    cate,
    specs,
    banner,
    goods,
    seckill
  }
})
